<?php
class Default_MiceController extends Zend_Controller_Action
{
    
    public function indexAction ()
    {
        $db_page = new Default_Model_DbTable_Page();
        $this->view->content =  $db_page->getdetailpage(9);
    }

    public function hotelmeetingAction()
    {
        $lang = Zend_Registry::get('lang');
        
        $db_city = new Default_Model_DbTable_City();
        $db_hotel = new Default_Model_DbTable_Hotel();
        $db_region = new  Default_Model_DbTable_Region();
        $db_page = new Default_Model_DbTable_Page();
        
        $countryId = $this->getRequest()->getParam("country",1);
        $spotId = $this->getRequest()->getParam("spotId",0);
        $regionId = $this ->getRequest()->getParam("regionId",0);
        $cityId = $this->getRequest()->getParam("cityId",0);
        $rate = $this->getRequest()->getParam("rate",0);
        $page = $this->getRequest()->getParam("page",1);
        $meeting = $this->getRequest()->getParam("meeting",1);
        
        $hotel = $db_hotel->getallhotel($lang, $countryId, $cityId, $regionId, $spotId, $rate,$meeting, $page);
        $city = $db_city->getlistcity($countryId);
        
        $this->view->cityId = $cityId;
        $this->view->hotel = $hotel;
        $this->view->country = $countryId;
        $this->view->rate = $rate;
        $this->view->content =  $db_page->getdetailpage(10);
    }
}